<?php foreach ($cats as $c) : ?>
    <div id="sortParamsWrap">
        <div class="span4">   
            <strong>Параметры 1 сорта:</strong>
            <hr/>
            <?php if(!empty($c['sort1'])) : ?>
                <div id="sortParams1" >
                    <div id="sortList1">
                        <div class="controls controls-row"> 
                            <?php foreach($c['sort1'] as $s) { ?>
                                <label class="text-info " for="Partner_sort1_catId<?php echo($s['catRatingId']); ?>"><?php echo($s['val']); ?>:</label>
                                <input class="input-xlarge" placeholder="Значение 1 параметра" type="text" value="" name="Partner[sort1][catId<?php echo($s['catRatingId']); ?>]" id="Partner_sort1_catId<?php echo($s['catRatingId']); ?>">
                            <?php  } ?>   
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </div>

        <div class="span4">  
            <strong>Параметры 2 сорта:</strong>
            <hr/>
            <?php if(!empty($c['sort2'])) : ?>
                <div id="sortParams2">
                    <div id="sortList2">
                        <div id="sortList2">
                            <div class="controls controls-row"> 
                                <?php foreach($c['sort2'] as $s) { ?>
                                    <label class="text-info " for="Partner_sort2_catId<?php echo($s['catRatingId']); ?>"><?php echo($s['val']); ?>:</label>
                                    <input class="input-xlarge" placeholder="Значение параметра" type="text" value="" name="Partner[sort2][catId<?php echo($s['catRatingId']); ?>]" id="Partner_sort2_catId<?php echo($s['catRatingId']); ?>">
                                <?php  } ?>   
                            </div>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
<?php endforeach; ?>

